package com.wlc.pac;

public class Customer extends Thread {
	private int bnum;
	private Storage storage;
	public Customer() {
		super();
		
	}
	public Customer(int bnum, Storage storage) {
		super();
		this.bnum = bnum;
		this.storage = storage;
	}
	public int getBnum() {
		return bnum;
	}
	public void setBnum(int bnum) {
		this.bnum = bnum;
	}
	public Storage getStorage() {
		return storage;
	}
	public void setStorage(Storage storage) {
		this.storage = storage;
	}
	public void run() {
		storage.buy(bnum);
	}
	
}
